{% extends "::Layout.html.twig" %}
{% block content %}
    {% if state is null %}
    Aucune référence ne correspond a vos critères de recherches.
    {% else %}
        <ul>
            {% for edition in state.getEditions() %}
                <li>{{ edition.id }}
                {% if edition.name %}
                    {{ edition.name }}
                {% else %}
                    {{ edition.book.title }}
                {% endif %}
                </li>
            {% endfor %}
        </ul>
    {% endif %}
{% endblock %}
